package com.tubang.logistics.service.impl;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.tubang.common.constant.Constants;
import com.tubang.logistics.entity.GoodsEntity;
import com.tubang.logistics.entity.TransportEntity;
import com.tubang.logistics.mapper.TransportMapper;
import com.tubang.logistics.service.ITransportService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 运输详情 服务实现类
 * </p>
 *
 * @author wsl
 * @since 2017-12-31
 */
@Service
public class TransportServiceImpl extends ServiceImpl<TransportMapper, TransportEntity> implements ITransportService {

    @Override
    public TransportEntity selectByOrderId(String orderId) {
        EntityWrapper<TransportEntity> entityWrapper = new EntityWrapper<TransportEntity>();
        entityWrapper.eq("order_id",orderId);
        TransportEntity transportEntity = selectOne(entityWrapper);
        return  transportEntity;
    }
}
